<?php
include_once('common/header.php');	
if($AppUI->id <= 0 || !isset($_SERVER['HTTP_REFERER'])) {	
	$arrJson = array('error'=>1,'msg'=>$arrError[1]);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
	exit();
}
$objVfriendUser	= new Vfriend_User();
$intVonPri		= $objVfriendUser->getAccount($AppUI->id, 1);
if($AppUI->fullhouseid > 0) {
	$intVonPub	= $objVfriendUser->getAccount($AppUI->fullhouseid, 2);
} else {
	$intVonPub	= 0;
}
$arrUstats		= $objVfriendUser->getUserStat($AppUI->id);
$this->view->intVonPri	= $intVonPri;
$this->view->intVonPub	= $intVonPub;
$this->view->arrUstats	= $arrUstats;
$objView 		= Zend_Registry::get('objView');
$strData		= $objView->fetch('ajax/von.tpl');
$arrJson 		= array('error'=>0,'msg'=>$strData);
echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
exit();
?>